using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniAspNetCore
{
    /// <summary>
    /// http上下文
    /// </summary>
    public class HttpContext
    {
        public HttpContext(IFeatureCollection features)
        {
            Request = new HttpRequest(features);
            Response = new HttpResponse(features);
        }

        //public HttpRequest Request { get; set; }
        //public HttpResponse Response { get; set; }

        /// <summary>
        /// 请求
        /// </summary>
        public HttpRequest Request { get; }

        /// <summary>
        /// 响应
        /// </summary>
        public HttpResponse Response { get; }
    }
}
